﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCode.Models
{
    public class Gift
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID{ get; set; }
        public string AgentUserName { get; set; }
        public string HomeBuyerUserName { get; set; }
        public string Name { get; set; }
        public DateTime GiftDate { get; set; }
        public bool Active { get; set; }
    }

    public class GiftDBContext : DbContext
    {
        public DbSet<Gift> Gifts { get; set; }
    }
}